﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Demo0521
{
    enum Taskname 
    {
        //送信
        送信,
        //杀怪
        杀怪,
        //采集
        采集
    }
    class TaskNpc : NPC
    {
        //定义任务介绍
        private string taskInfo;
        private Taskname taskname;

        public string TaskInfo { get; set; }
        public Taskname TaskName { get { return this.taskname; }set { this.taskname = value; } }
        public TaskNpc(string name,NpcType type, string taskInfo,Taskname taskname):base(name,type)
        {
            this.taskInfo = taskInfo;
            this.taskname = taskname;
        }
        //继承抽象方法
        public override void Chat()
        {
            Console.WriteLine("请你帮帮我！NPC：{0}，任务描述：{1}任务类型：{2}",this.Name,this.taskInfo,this.taskname );
        }
    }
}
